﻿<form class="spacing-bottom-sm row" page-header="Manage standards" ng-submit="search()">
    <div class="col-sm-6">
        <input class="form-control" ng-model="filters.standardNo" placeholder="Search standard No" autofocus />
    </div>
    <div class="col-sm-6">
        <a class="btn btn-info" ui-sref="standard-new">
            <b class="glyphicon glyphicon-plus"></b> New Standard
        </a>
    </div>
</form>

<table ng-table="tableParams" class="table table-hover table-bordered ng-table-resizable-columns" ng-visible="$data.length">
    <tr ng-repeat="item in $data">
        <td data-title="'#'" header-class="col-sm-1 width5"><span class="form-control-static">{{item.certificateStandardId}}</span></td>
        <td data-title="'Standard#'" header-class="col-sm-2 width7"><span class="form-control-static">{{item.standardNo}}</span></td>
        <td data-title="'Manufacturer'" header-class="col-sm-2 width15"><span class="form-control-static" style="white-space:nowrap;">{{item.manufacturer}}</span></td>
        <td data-title="'Model #'" header-class="col-sm-2 width10"><span class="form-control-static" style="white-space:nowrap;">{{item.modelNumber}}</span></td>
        <td data-title="'Description'" header-class="col-sm-2 width15"><span class="form-control-static">{{item.description}}</span></td>
        <td data-title="'Test Report #'" header-class="col-sm-2 width20"><span class="form-control-static">{{item.testReportNumber}}</span></td>
        <td data-title="'Due date'" header-class="col-sm-1 width10"><span class="form-control-static">{{item.dueDate | date: 'dd/MMM/yyyy'}}</span></td>
        <td data-title="'Technician'" header-class="col-sm-2 width10"><span class="form-control-static">{{item.technicianName}}</span></td>
        
        <td class="text-center" header-class="col-sm-1 width5">
            <a ui-sref="standard-item({id: item.certificateStandardId})" class="btn btn-default">View</a>
        </td>
    </tr>
</table>
<div ng-show="!tableParams.settings().$loading && tableParams.data.length === 0" class="well text-center">No result</div>
